package edu.nwpu.pojo;

import java.util.List;

public class Food {

    /**
     * 菜品的id
     * food's id
     */
    private Long id;
    
    /**
     * 菜品类别，一个菜品可以属于多个类别
     * food type, a food can belong to multiple types
     */
    private List<FoodType> foodTypes;

    /**
     * 菜品名称
     * name of food
     */
    private String name;

    /**
     * 图片url
     * picture's url
     */
    private String picUrl;

    /**
     * 菜品介绍
     * food's description
     */
    private String desc;

    /**
     * 菜品价格
     * food's price
     */
    private Double price;


    public Food() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public List<FoodType> getFoodTypes() {
        return foodTypes;
    }

    public void setFoodTypes(List<FoodType> foodTypes) {
        this.foodTypes = foodTypes;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Food{" +
                "id=" + id +
                ", foodTypes=" + foodTypes +
                ", name='" + name + '\'' +
                ", picUrl=" + picUrl +
                ", desc='" + desc + '\'' +
                ", price=" + price +
                '}';
    }
}
